import Mustache from "./Mustache";

let data = {
    arr: [
        { name: '小宁' },
        { name: '小明' },
        { name: '小红' }
    ]
}
// 循环
let templateStr = `
    {{#arr}}
        <h2>我的名字叫：{{ name }}</h2>
    {{/arr}}
`
let str1 = Mustache.render(templateStr, data)

console.log(str1);
app.innerHTML = str1
